﻿using System;

namespace MenusHunter.WinRT.Core.MVVM
{
    /// <summary>
    /// Interface for NavigateService for navigation in ViewModel(MVVM)
    /// </summary>
    public interface INavigateServcie
    {

        /// <summary>
        ///  determine page can go back
        /// </summary>
        bool CanGoBack { get;  }
        /// <summary>
        ///  determine page can go forward
        /// </summary>
        bool CanGoForward { get; }
        /// <summary>
        /// Go to previouse page
        /// </summary>
        void GoBack();
        /// <summary>
        /// Go to next page
        /// </summary>
        void GoForward();
        /// <summary>
        /// Navigate to a page 
        /// </summary>
        /// <param name="type">Type of page class</param>
        /// <param name="parameters">data scross two pages</param>
        bool Navigate(Type type, object parameters = null);



    }
}
